﻿using System;
using System.IO;
using EasyMvc.Web.Common;
using System.Web.Mvc;

namespace EasyMvc.Web.Areas.MWeb.Controllers
{
    public class LogController : MWebControllerBase
    {
        public ActionResult Exception()
        {
            var path = AppDomain.CurrentDomain.BaseDirectory + @"Log\Exception";
            var folder = new DirectoryInfo(path);

            return View(folder.GetFiles());
        }

        public ActionResult History()
        {
            var path = AppDomain.CurrentDomain.BaseDirectory + @"Log\History";
            var folder = new DirectoryInfo(path);

            return View(folder.GetFiles());
        }
    }
}
